package com.example.work3.repository;

import com.example.work3.entity.Major;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface MajorRepository extends CrudRepository<Major, Integer> {
    List<Major> findByName(String name);
}
